﻿using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;
using Orchard.Users.Models;
using System;

namespace VIC.User.Models
{
    public class VIC_UserRecord : ContentPartRecord
    {
        public virtual string FirstName { get; set; }
        public virtual string LastName { get; set; }
        public virtual string Gender { get; set; }
        public virtual DateTime? DateOfBirth { get; set; }
        public virtual string Email { get; set; }
        public virtual string Address { get; set; }
        public virtual string Phonenumber { get; set; }
        public virtual string SummaryCare { get; set; }
        public virtual string SummarySelf { get; set; }
        public virtual string Website { get; set; }
        public virtual string SSN { get; set; }
        public virtual string Avatar { get; set; }
        public virtual int UserRecord_Id { get; set; }
    }

    public class VIC_UserPart : ContentPart<VIC_UserRecord>
    {
        public string FirstName
        {
            get { return Record.FirstName; }
            set { Record.FirstName = value; }
        }
        public string LastName
        {
            get { return Record.LastName; }
            set { Record.LastName = value; }
        }

        public string Gender
        {
            get { return Record.Gender; }
            set { Record.Gender = value; }
        }

        public DateTime? DateOfBirth
        {
            get { return Record.DateOfBirth; }
            set { Record.DateOfBirth = value; }
        }

        public string Email
        {
            get { return Record.Email; }
            set { Record.Email = value; }
        }

        public string Address
        {
            get { return Record.Address; }
            set { Record.Address = value; }
        }

        public string Phonenumber
        {
            get { return Record.Phonenumber; }
            set { Record.Phonenumber = value; }
        }
        public string SummaryCare
        {
            get { return Record.SummaryCare; }
            set { Record.SummaryCare = value; }
        }

        public string SummarySelf
        {
            get { return Record.SummarySelf; }
            set { Record.SummarySelf = value; }
        }

        public string Website
        {
            get { return Record.Website; }
            set { Record.Website = value; }
        }

        public int UserPart_Id
        {
            get { return Record.UserRecord_Id; }
            set { Record.UserRecord_Id = value; }
        }
        public string SSN
        {
            get { return Record.SSN; }
            set { Record.SSN = value; }
        }

        public UserPart User { get; set; }

        public string Avatar
        {
            get { return Record.Avatar; }
            set { Record.Avatar = value; }
        }
    }
}